package cn.lookup.domain;

import java.util.Date;

public class Order {
    private int id;
    private Date dateTime;
    private double total;
    private Account account;

    public Order() {
    }

    public Order(int id, Date dateTime, double total, Account account) {
        this.id = id;
        this.dateTime = dateTime;
        this.total = total;
        this.account = account;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Date getDateTime() {
        return dateTime;
    }

    public void setDateTime(Date dateTime) {
        this.dateTime = dateTime;
    }

    public double getTotal() {
        return total;
    }

    public void setTotal(double total) {
        this.total = total;
    }

    public Account getAccount() {
        return account;
    }

    public void setAccount(Account account) {
        this.account = account;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", dateTime=" + dateTime +
                ", total=" + total +
                ", account=" + account +
                '}';
    }
}
